|
Embedded C++ (EC++) is a dialect of the C++ programming language for embedded systems. It was defined by an industry group led by major Japanese central processing unit (CPU) manufacturers, including NEC, Hitachi, Fujitsu, and Toshiba, to address the shortcomings of C++ for embedded applications. The goal of the effort is to preserve the most useful object-oriented features of the C++ language yet minimize code size while maximizing execution efficiency and making compiler construction simpler. The official website states the goal as "to provide embedded systems programmers with a subset of C++ that is easy for the average C programmer to understand and use".〔(EC++ Questions and Answers )〕 == Differences from C++ == Embedded C++ is a proper subset of C++. The following language features have been ''removed'': * Multiple inheritance * Virtual base classes * Run-time type information (typeid) * New style casts (static_cast, dynamic_cast, reinterpret_cast and const_cast) * The mutable storage class specifier * Namespaces * Exceptions * Templates Some compilers (such as Green Hills and IAR Systems) allows specific features in the above list to be re-enabled if desired, an implementation called "extended embedded C++".〔(【引用サイトリンク】url=http://www.testech-elect.com/iar/extended_embedded_c++.htm )〕 In addition, many users of Embedded C++ avoid the STL with its use of dynamic memory allocation.〔(【引用サイトリンク】url=http://stackoverflow.com/questions/2226252/embedded-c-to-use-stl-or-not )〕 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Embedded C++」の詳細全文を読む スポンサード リンク
|